Feature: Member set Badday Story
  In order to set badday in voting application
  As a member
  I want to try to set message for badday

@member_set_badday
Scenario:  Member want to set Badday
    Given the following user record
    |firstname|lastname|surname|login|email| password|password_confirmation| role |
    |user|user|user|user|user@sad.com|user1234|user1234|member|
    |member|member|member|member|member@sad.com|user1234|user1234|member|
    Given the following category record
    |title|
    |A|
    |B|
    And I login as "member" with password "user1234"
    Then I should see "You are login as member member"
    And I visit "My Bad Day" page by clicking "my bad day" link
    Then I should see "My Bad Day" form
    And I select "A" from "category" 
    And I fill in "message" with "This is a test story"
    When I check "check_alias"
    Then I fill in "alias" with "alias"
    And I press "OK"
    Then I should see "Badday message has been added"